#ifndef STACK_H_
#define STACK_H_

#include "base.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef int StackNodeType;

typedef struct StackNode {
	StackNodeType		data;
	struct StackNode	*next;

}StackNode, *ListStack;

void InitStack( ListStack *s );
Status GetTop( ListStack *s, StackNodeType *pTop );
Status Pop( ListStack *s, StackNodeType *pTop );
Status Push( ListStack *s, StackNodeType *pdata );
BOOL StackEmpty( ListStack *s );

#ifdef __cplusplus
}
#endif

#endif